package bean;
import java.util.Arrays;
import java.util.Date;
public class Filesf {
        private Integer id;
        private String filename;
        private String filetype;
        private Long filesize;
        private Date uploadTime;
        private byte[] filedata; // 对应数据库 LONGBLOB
        private String username;
        private int userId;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
        public String toString() {
            return "FileEntity{" +
                    "id=" + id +
                    ", filename='" + filename + '\'' +
                    ", filetype='" + filetype + '\'' +
                    ", filesize=" + filesize +
                    ", uploadTime=" + uploadTime +
                    ", filedata=" + Arrays.toString(filedata) +
                    '}';
        }

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getFilename() {
            return filename;
        }

        public void setFilename(String filename) {
            this.filename = filename;
        }

        public String getFiletype() {
            return filetype;
        }

        public void setFiletype(String filetype) {
            this.filetype = filetype;
        }

        public Long getFilesize() {
            return filesize;
        }

        public void setFilesize(Long filesize) {
            this.filesize = filesize;
        }

        public Date getUploadTime() {
            return uploadTime;
        }

        public void setUploadTime(Date uploadTime) {
            this.uploadTime = uploadTime;
        }

        public byte[] getFiledata() {
            return filedata;
        }

        public void setFiledata(byte[] filedata) {
            this.filedata = filedata;
        }

}

